package com.heima.encrypt;

/**
 * 定义一个猫类
 */
public class Cat {

    //属性：
    private String color;

    private String hight;

    //构造方法
    public Cat(String color, String hight) {
        this.color = color;
        this.hight = hight;
    }

    //get方法
    public String getColor() {
        return color;
    }
    //set方法
    public void setColor(String color) {
        this.color = color;
    }
    //get方法
    public String getHight() {
        return hight;
    }
    //set方法
    public void setHight(String hight) {
        this.hight = hight;
    }



    //方法：（行为）
    public static void eat(){
        System.out.println("吃东西");
    }

    public static void play(){
        System.out.println("跳舞");
    }


}
